import axios from '@/libs/request/axios'
// 获取参数信息
export const getTemplateList = (params) => {
    return axios.request({
        url: `/contractManage/smsTemplate/queryTemplateList`,
        data: params,
        method: 'post'
    })
}
// 添加参数配置
export const addTemplate = (params) => {
    return axios.request({
        url: '/contractManage/smsTemplate/addTemplate',
        data:params,
        method: 'post'
    })
}
// 编辑参数配置
export const editTemplate = (params) => {
    return axios.request({
        url: '/contractManage/smsTemplate/editTemplate',
        data:params,
        method: 'post'
    })
}
// 删除参数配置
export const deleteTemplate = (id, params) => {
    return axios.request({
        url: `/contractManage/smsTemplate/deleteTemplate/${id}`,
        data:params,
        method: 'delete'
    })
}
// 短信发送
export const sendMessageInfo = (params) => {
    return axios.request({
        url: '/contractManage/smsTemplate/sendMessageInfo',
        data:params,
        method: 'post'
    })
}
